CHCP 65001
@echo off
set INPUT_DIR=.\GameProtocol\
set PROTOC=.\bin\protoc.exe
set PROTOC250=.\bin\protoc250.exe


echo 开始生成Cs
set OUTPUT_DIR=.\Export\Cs\
if exist %OUTPUT_DIR% rd  /s /q %OUTPUT_DIR%
if not exist %OUTPUT_DIR% mkdir %OUTPUT_DIR%

@SET OPTION= -I.\GameProtocol\ --csharp_opt=file_extension=.g.cs --csharp_out=%OUTPUT_DIR%
%PROTOC% %OPTION% CustomOption.proto
%PROTOC% %OPTION% ProtocolIdEnum.proto
%PROTOC% %OPTION% ServerInner.proto

echo Finished.
pause
